package com.dp.system.mapper;

import java.util.List;
import com.dp.system.domain.SysGreenhouse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 大棚Mapper接口
 *
 * @author ruoyi
 * @date 2025-02-10
 */
@Mapper
public interface SysGreenhouseMapper
{
    /**
     * 查询大棚
     *
     * @param greenhouseId 大棚主键
     * @return 大棚
     */
    public SysGreenhouse selectSysGreenhouseByGreenhouseId(Long greenhouseId);

    /**
     * 查询大棚列表
     *
     * @param sysGreenhouse 大棚
     * @return 大棚集合
     */
    public List<SysGreenhouse> selectSysGreenhouseList(SysGreenhouse sysGreenhouse);

    /**
     * 新增大棚
     *
     * @param sysGreenhouse 大棚
     * @return 结果
     */
    public int insertSysGreenhouse(SysGreenhouse sysGreenhouse);

    /**
     * 修改大棚
     *
     * @param sysGreenhouse 大棚
     * @return 结果
     */
    public int updateSysGreenhouse(SysGreenhouse sysGreenhouse);

    /**
     * 删除大棚
     *
     * @param greenhouseId 大棚主键
     * @return 结果
     */
    public int deleteSysGreenhouseByGreenhouseId(Long greenhouseId);

    /**
     * 批量删除大棚
     *
     * @param greenhouseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysGreenhouseByGreenhouseIds(@Param("list") Long[] greenhouseIds);
}